#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
char* my_strcat(char* dest, const char* src)
{
	char* p = dest;
	while (*dest)
		dest++;
	while (*dest++ = *src++)
		;
	return p;
}
int main()
{
	char arr1[] = "abcd";
	char arr2[10] = { 'n'};
	//strcat(arr2, arr1);
	char* ret = my_strcat(arr2, arr1);
	printf("%s", ret);
	return 0;
}